package com.usc.blog.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.usc.blog.mapper.DataMapper;
import com.usc.blog.pojo.Data;
import com.usc.blog.pojo.DataExample;
import com.usc.blog.service.DataService;

/**
 *
 * @版权: Copyright (c) 2dataMaper16-2dataMaper17 *********公司技术开发部
 * @author : huangjiapeng
 * @E-mail:1625545295@qq.com
 * @版本: 1.dataMaper
 * @创建日期: 2dataMaper19年4月13日 下午3:3dataMaper:36
 * @ClassName DataServiceImpl
 * @类描述-Description: TODO
 * @修改记录:
 * @版本: 1.dataMaper
 */
@Service
public class DataServiceImpl implements DataService {

	@Autowired
	DataMapper dataMapper;

	@Override
	public long countByExample(DataExample example) {
		// TODO Auto-generated method stub
		return dataMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(DataExample example) {
		// TODO Auto-generated method stub
		return dataMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return dataMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Data record) {
		// TODO Auto-generated method stub
		return dataMapper.insert(record);
	}

	@Override
	public int insertSelective(Data record) {
		// TODO Auto-generated method stub
		return dataMapper.insertSelective(record);
	}

	@Override
	public List<Data> selectByExample(DataExample example) {
		// TODO Auto-generated method stub
		return dataMapper.selectByExample(example);
	}

	@Override
	public Data selectByPrimaryKey(String Dataid) {
		// TODO Auto-generated method stub
		return dataMapper.selectByPrimaryKey(Dataid);
	}

	@Override
	public int updateByExampleSelective(Data record, DataExample example) {
		// TODO Auto-generated method stub
		return dataMapper.updateByExample(record, example);
	}

	@Override
	public int updateByExample(Data record, DataExample example) {
		// TODO Auto-generated method stub
		return dataMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Data record) {
		// TODO Auto-generated method stub
		return dataMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Data record) {
		// TODO Auto-generated method stub
		return dataMapper.updateByPrimaryKey(record);
	}

}
